<%@ Page Title="Recipient Details" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" AutoEventWireup="true" 
	Inherits="System.Web.Mvc.ViewPage<gnodotnet.Core.MailingList.Recipient>" %>
<%@ Import Namespace="gnodotnet.Web.Controllers.MailingList" %>

<asp:Content ContentPlaceHolderID="MainContentPlaceHolder" runat="server">

    <h1>Recipient Details</h1>

    <ul>
		<li>
			<label for="Recipient_Name">Name:</label>
            <span id="Recipient_Name"><%= Server.HtmlEncode(ViewData.Model.Name.ToString()) %></span>
		</li>
		<li>
			<label for="Recipient_Email">Email:</label>
            <span id="Recipient_Email"><%= Server.HtmlEncode(ViewData.Model.Email.ToString()) %></span>
		</li>
	    <li class="buttons">
            <%= Html.Button("btnBack", "Back", HtmlButtonType.Button, 
                "window.location.href = '" + Html.BuildUrlFromExpression<RecipientsController>(c => c.Index()) + "';") %>
        </li>
	</ul>

</asp:Content>
